package com.zqj.spring_mybatis.userInfo.service;

import com.zqj.spring_mybatis.userInfo.pojo.UserInfo;
import org.springframework.transaction.annotation.Transactional;

import java.util.List;
@Transactional
public interface UserInfoService {


    //获取用户名单
    public List<UserInfo> getUser() throws Exception;
    //根据id删除用户
    public void deleteUser(int id)throws Exception;
    //新增用户
    public void addUser(UserInfo user)throws Exception;
}
